<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="public/home/css/bootstrap.min.css"/>
		<link rel="stylesheet" type="text/css" href="public/home/css/index.css"/>
		<link rel="stylesheet" type="text/css" href="public/home/css/list.css"/>
		<link rel="stylesheet" type="text/css" href="public/home/css/new.css"/>
		<script src="public/home/js/jquery-2.1.1.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="public/home/js/osSlider.js" type="text/javascript" charset="utf-8"></script>
		<style type="text/css">.num .ongg {
	margin: 0 10px;
	line-height: 25px;
}

.num .ongg strong {
	margin: 0 5px;
}

#goods .goodsCon .buy .prosize span.prodSpec a.bor_red {
	border: 1px solid red;
}</style>
	</head>
	<body>
		<!--顶部-->
		<div id="top">
			<div class="box">
				<p class="t_l"><a href="#">时尚商城</a></p>
				<p class="t_lse"><a href="#">首尔站</a></p>
				<ul class="t_r">
					<if value="$_SESSION['id']">
						<li>您好！用户ID为：<a class="col">{{$_SESSION['id']}}</a>  的会员欢迎回来。  <a href="#">退出 </a> </li>
						<else>
					<li><a class="col" href="index.php?s=home/user/login">登录</a></li>
					<li><a class="col" href="index.php?s=home/user/reg">注册</a></li>
					</if>
					<li>|</li>
					<li class="cur">
						<a href="#" class="t"><i></i>我的优购</a>
						<div class="on">
							<a href="">我的收藏</a>
						</div>
					</li>
					<li><a href="#">我的订单</a></li>
					<li class="cur">
						
						<a class="t" href="#"><i></i>公告</a>
						
						<div class="notice_con on">
              				<a target="_blank" href="">运动秋季新品直降</a>
              				<a target="_blank" href="">分享购官方微信</a>
              				<a target="_blank" href="">分享购QQ群111111</a>
              				<a target="_blank" href="">关于跨境商品征税新政策调整</a>
              				<a target="_blank" href="">提醒会员谨防诈骗电话</a>
          				</div>
						
					</li>
					<li class="cur">
						<a class="t" href="#"><i></i>更多</a>
						<div class="on">
							<a href="">收藏本站</a>
							<a href="">帮助中心</a>
						</div>
					</li>
				</ul>
			</div>
		</div>
		<!--顶部结束-->
		<!--banner-->
		<div id="banner">
			<div class="ban_t">
				<div class="logo"><img src="public/home/img/logo.png"/></div>
				<div class="seach">
					<input type="text" name="seach" id="seach" value="" />
					<input type="button" id="but" value="" />
					<ul class="sea_rt">
						<li><a href="#">热销</a></li><span>|</span>
						<li><a href="#">热销</a></li><span>|</span>
						<li><a href="#">热销</a></li><span>|</span>
						<li><a href="#">热销</a></li><span>|</span>
						<li><a href="#">热销</a></li><span>|</span>
						<li><a href="#">热销</a></li><span>|</span>
						<li><a href="#">热销</a></li><span>|</span>
						<li><a href="#">热销</a></li><span>|</span>
						<li><a href="#">热销</a></li>
					</ul>
				</div>
				<div class="shop">
					<div class="shop_gw">
						<div class="shop_lt">
						<i class="shop_img"></i>
						<p>购物车(<span>0</span>)件</p>
						<i class="san"></i>
						</div>
						<div class="shop_lb">
							<div id="shoppingcartContainer">
<!--我的购物车 start-->
<div class="mycart_pop abs">
   
        <ul class="mycart_pro_list">


        </ul>
    
    <div class="ft rel">
        <a target="_blank" href="" class="go_js fr">去购物车结算</a>
	    <span>
	    	共 <em id="num" class="corg"></em> 件商品
	    </span>
    </div>
</div></div>
						</div>
					</div>
					<p class="shop_p">百丽国际旗下购物网站</p>
				</div>
			</div>
			<div class="ban_b">
				<h2></h2>
				<div class="nav_l">
					<ul>
						<foreach from='$dhData' key='$k' value='$v'>
						<li>
							<a href="{{$v['cid']}}">{{$v['cname']}}</a>
						</li>
						</foreach>
					</ul>
				</div>
				<div class="nav_r">
					<ul>
						<li><a class="col" href="#">分享购</a></li>
						<li><a href="#">秒杀</a></li>
						<li><a href="#">聚优购</a></li>
					</ul>
				</div>
			</div>
		</div>	
	
		<!--banner结束-->
		<!--分类导航-->
		<div class="men">
			<p>您当前位置</p><span>》</span>
			<p>
				<a href="#">运动户外</a>
			</p>
			<span>》</span>
			<p><a href="#">运动</a>
			</p>
			<span>》</span>
			<p><a href="#">运动鞋/休闲鞋</a>
			</p>
			<span>》</span>
			<p><a href="#">运动鞋</a>
			</p>
			<span>》</span>
			<p><a href="#">跑步鞋</a>
			</p>
		</div>
		<!--分类导航结束-->
		
		<!--产品信息-->
		<div id="goods">
			<!--产品方大镜-->
				<div class="goodsblank" id="goodsblank">
					<div class="goodspod">
						<img src="" width="482" height="482"/>
						<div class="fd"></div>
						
					</div>
					<div class="ampli"><img src="" width="960" height="960"/></div>
					<div id='goodsImg1' class="nun">
						<ul>
							<foreach from="$data['small']" key='$k' value='$v'>
							<li><img src="{{$v}}" medium="{{$data['medium'][$k]}}" big="{{$data['big'][$k]}}"/></li>
							</foreach>
						</ul>
					</div>
				</div>
				
			<!--结束-->
			<!--产品信息-->
			<div class="goodsCon">
					<h1>{{$data['gname']}}</h1>
					<div class="good_yg">
						<p class="fl ygprcarea" id="ygprice_area">
							<span id="Price" class="ygprc">¥<i>{{$data['shopprice']}}</i></span>
							<del>¥ {{$data['marketprice']}} </del>
							<!--<span id="jies" class="ico_discount"><i>5.7</i>折</span>-->
						<strong class="yhj">不支持使用优惠券</strong></p>
					</div>
					<div class="buy ylbgbd mt5 goods_buy">
					   <foreach from='$attrData' key='$k' value='$v'>
						<!-- 尺码 start -->
						<p data-property="{{$v['taname']}}" class="prosize">
							<span class="fl">{{$v['taname']}}</span> 
							<span class="prodSpec"> 
								<foreach from="$v['Son']" key='$kk' value='$vv'>
								<a class="getSpec" gtval="{{$vv['gtvalue']}}" gtid="{{$vv['gtid']}}">{{$vv['gtvalue']}}<i></i></a>
								</foreach>
							</span> 
						</p>
						<!-- 尺码 end -->
						</foreach>
						
						<!-- 数量 start -->
						<p class="num">
							<span class="nums">数量</span> 
							<span>
								<a href="javascript:void(0);" id="bot_subtract" class="subtract"></a>
								<em class="numdis">
							<input value="1" maxlength="1" class="mycartxt newNum" type="text">
								</em>
								<a href="javascript:void(0);" id="bot_plus" class="plus"></a>
							</span> 
							<span class="ongg"><span >已选择</span><span class="Red"> <strong id='ys'></strong></span>&nbsp;&nbsp;<span>库存量(<strong id='kc' class="Red">{{$data['kucun']}}</strong>)</span></span>
						</p>
			            <!-- 数量 end -->
						<p class="blank20"></p>
                            <!-- 下单加车按钮 start -->
							<p class="qbuy">
								<a id="buyNow" class="ljgm" href="javascript:void(0)">立即购买</a>
								<a id="addShoppingCart" class="shopping" href="javascript:void(0)">加入购物车</a> 
							</p>
						    <!-- 下单加车按钮 end -->
					</div>

					<!-- 发货方式  start-->
					<!--<p class="c9 col ml10 shipper_yg" id="shipper_yg">本商品由<span id="ShopName" class="c6">YouGou优购</span>直接发货</p>-->
					<!-- 发货方式  end-->

					<!--服务承诺 start-->
					<!--<dl class="ser_promise clearfix">
						<dt>服务承诺</dt>
							<dd>
								<ul class="clearfix">
									<li class="promise1"><i class="fl"></i> <a class="fl" href="#" target="_blank" rel="nofollow">正品保证</a></li>
									<li class="promise2"><i class="fl"></i> <a class="fl" href="#" target="_blank" rel="nofollow">10天退换货</a></li>
									<li class="promise3"><i class="fl"></i> <a class="fl" href="#" target="_blank" rel="nofollow">10天补差价</a></li>
								</ul>
							</dd>
						</dl>-->
					<!--服务承诺 end-->
			</div>
			<!--结束-->
	<script type="text/javascript">
		$(function(){
			$('.getSpec').click(function(){
				var getlen=$('.prosize').length;
				var specData='';
				var specajax='';
				$.each($('.bor_red'), function() {
					specData+=$(this).attr('gtval')+'&nbsp;&nbsp';
					specajax+=$(this).attr('gtid')+'|';
				});
				$('#ys').html(specData);
				var len=$('.bor_red').length;
				if(len<getlen){
					return;
				}
				var gid="{{$_GET['gid']}}";
				$.ajax({
					type:"post",
					url:"{{U('inven')}}",
					data:{'gid':gid,'combine':specajax},
					success:function(phpData){
						if(!phpData.message){
							alert('该款式暂时无库存！');
							$('#kc').html('无库存');
							$('.qbuy').css({display:"none"});
						}else{
							$('.qbuy').css({display:"block"});
							$('#kc').html(phpData.message);
						}
					}					
				});
				
				//加入购物车
			
				$('#addShoppingCart').click(function(){
					var num=$('.newNum').val();
					if(!specajax){
						alert('请选择产品规格');
						return false;
					} 
					$.ajax({
						type:"post",
						url:"{{U('shoplist')}}",
						data:{'gid':gid,'combine':specajax,'num':num},
						success:function(Data){
							
						}
					});						
				})
			});
		})
	</script>		
	<script type="text/javascript">
		$('.shop_gw').mouseenter(function(){
			$.ajax({
				type:"post",
				url:"{{U('shopeach')}}",
				success:function(Data){
//					if(!valid){return false;}
					var str='';
					var num=Data.message.length;
				
					$.each(Data.message, function(k,v) {
						str+='<li class="clearfix"><div class="img fl rel"><a href="" target="_blank">';
						str+='<img src="'+v.pic+'" width="42" height="42" alt=""></a></div>';
						str+='<div class="info fl"><p class="name"><a href="" target="_blank">'+v.gname+'</a></p>';
						str+='<p class="choose cgray">';
						$.each(v.ongg, function(k,v) {
							$.each(v, function(kk,vv) {
								str+=''+kk+'：<em>'+vv+'</em>';
							});
						});
						str+='</p></div><div class="prc fl"><em class="ygprc">¥<i>'+v.shopprice+'</i></em><!--<div class="mt3"><span class="actvtip2">限时抢<i></i></span></div>--></div>';
						str+='<div class="num_cz fr"><div class="dec_add"><a class="dec dec_no" href="javascript:void(0);"></a>';
						str+='<input class="num" type="text" name="" id="oldNum_1" value="'+v.num+'" readonly="readonly"><a class="add" href="javascript:void(0);" onclick=""></a>';
						str+='</div><p class="cz cgray"><a href="javascript:void(0);" class="JsRemoveGood">删除</a></p></div></li>';
					});
//					alert(1);
					$('.mycart_pro_list').html(str);
					$('#num').html(num);
					
					
				}
			});
			
		
		})
	</script>	
			<!--看了又看-->
		<div class="look">
			<div class="look_ht"><s></s> <span>看了又看</span></div>
			<div class="look_goods">
				<div class="look_con">
					<ul style="position: absolute; height: 3132px;" class="look_goods_ul">
						<li>
							<a target="_blank" href="">
								<img class="" src="img/ky.jpg" width="140" height="140">
							</a>
							<div class="look_goods_tit">
								<a target="_blank" href="">
									<span class="fl">乐斯菲斯</span>
									<span class="fr">¥209</span>
								</a>
							</div>
							
						</li>
						<li>
							<a target="_blank" href="">
								<img class="" src="img/ky.jpg" width="140" height="140">
							</a>
							<div class="look_goods_tit">
								<a target="_blank" href="">
									<span class="fl">乐斯菲斯</span>
									<span class="fr">¥209</span>
								</a>
							</div>
							
						</li>
						<li>
							<a target="_blank" href="">
								<img class="" src="img/ky.jpg" width="140" height="140">
							</a>
							<div class="look_goods_tit">
								<a target="_blank" href="">
									<span class="fl">乐斯菲斯</span>
									<span class="fr">¥209</span>
								</a>
							</div>
							
						</li>
					</ul>
				</div>
					<ul class="look_switchable-trigger">
						<li class="look-switchable-prev-btn"></li>
						<li class="look-switchable-next-btn"></li>
					</ul>
			</div>
		</div>
		<!--看了又看结束-->
		</div>
		
		<!--产品信息结束-->
		<!--内容部分-->
		<div class="ygwrap">
			
		
		<!--产品详情-->
		<div class="goods_lc" id="goods_lc">
		<div class="goods_lc_triggle" id="goodsBar1">
			<a href="javascript:void(0)" class="current" onclick="javascript:if(_gaq){ _gaq.push(['_trackPageview','/PageAction/detail/detail']); }">商品详情</a>
			<a href="javascript:void(0)" onclick="javascript:if(_gaq){ _gaq.push(['_trackPageview','/PageAction/detail/commemt']); }">商品点评<em id="comment_count" class="ygprc14"><i>22</i></em></a> 

			
			
		</div>

		<div class="goods_lc_box">
			<!--商品详情开始-->
			<div style="display: block;" class="goods_lc_item">
				<div class="bd">
					<div class="goods_lc_tb">
						<table class="detail_table">
							<tbody>
							<foreach from="$arrData" key='$k' value='$v'>	
							<tr>
								 <foreach from="$v['arr1']" key='$kk' value='$vv'>
								<td class="td1">{{$vv['taname']}}：</td>
								<td class="td2">{{$vv['gtvalue']}}</td>        
								  </foreach>   
								  <foreach from="$v['arr2']" key='$kk' value='$vv'>
								<td class="td1">{{$vv['taname']}}：</td>
								<td class="td2">{{$vv['gtvalue']}}</td>        
								  </foreach> 
							</tr>
							</foreach>
							
							</tbody></table>
					</div>


					<p class="blank8"></p>
					<!--尺码开始-->
					<div class="size_area">
						<h4>温馨提示：</h4>
						<table>
							<caption>
								男子上装T恤&amp;POLO尺码对照表1</caption>
							<tbody>
								<tr>
									<td>尺码</td>
                              <td>S</td>
                              <td>M</td>
                              <td>L</td>
                              <td>XL</td>
                              <td>XXL</td>
                         </tr>
								<tr class="odd">
									<td>胸围(cm)</td>
                              <td>96</td>
                              <td>100</td>
                              <td>108</td>
                              <td>114</td>
                              <td>118</td>
                         </tr>
								<tr>
									<td>肩宽(cm)</td>
                              <td>44</td>
                              <td>45</td>
                              <td>46</td>
                              <td>47</td>
                              <td>48</td>
                         </tr>
								<tr class="odd">
									<td>腰围(cm)</td>
                              <td>93</td>
                              <td>97</td>
                              <td>106</td>
                              <td>112</td>
                              <td>116</td>
                         </tr>
								<tr>
									<td>袖长(cm)</td>
                              <td>21</td>
                              <td>22</td>
                              <td>23</td>
                              <td>23</td>
                              <td>24</td>
                         </tr>
								<tr class="odd">
									<td>衣长(cm)</td>
                              <td>69</td>
                              <td>71</td>
                              <td>72</td>
                              <td>74</td>
                              <td>75</td>
                         </tr>
								<tr>
									<td>摆围(cm)</td>
                              <td>96</td>
                              <td>100</td>
                              <td>108</td>
                              <td>114</td>
                              <td>118</td>
                         </tr>
							</tbody>
						</table>
					</div>
					<!--尺码结束-->
					
					{{$data['intro']}}
			
			
					
				</div>
			
			<!--商品详情结束-->
			<!--商品点评start-->
			<div style="display: block;" class="goods_lc_item" id="goods_comment">
				<div class="hd mt20">
					<h3 class="hd_t fl">商品点评</h3>

					<p class="hd_tip fr">购买过该商品的用户才能进行评论</p>
				</div>
				<div class="bd">
					<div id="dpbox">
						<div id="userCommentContainer">

<!--点评正文 start-->
<div class="blank15"></div>
<div class="pdlr20 mgt8">
	<div class="tright">
    	<span><input id="allCmmnt" name="cmmntLst" onclick="YGG.Module.getComment();" value="0" checked="" type="radio"><label for="allCmmnt" style="cursor:pointer"> 全部评价</label><em class="ca">（22）</em></span>
        <span class="ml10"><input id="ysdCmmnt" name="cmmntLst" onclick="YGG.Module.getComment();" value="1" type="radio"><label for="ysdCmmnt" style="cursor:pointer"> <i class="ico_wysd"></i> 有晒单</label><em class="ca">（1）</em></span>
    </div>
	<div id="userCommentContainer-1">
			<input id="pageSize" value="10" type="hidden">
			<input id="pageNo" value="1" type="hidden">
			<input id="totalCount" value="22" type="hidden">
			
			
			<div class="usercomm_content_box">
				<div class="member_info">
					<a href="http://www.yougou.com/review-gkuZh0iNsfR_0.html" class="Blue" target="_blank">
									<img src="http://i1.ygimg.cn/pics/shop/zhu_zhan/images/vip.png">
						</a>
					<br>
					<a href="http://www.yougou.com/review-gkuZh0iNsfR_0.html" class="Blue" target="_blank">
					 			131***
				 	</a>
				</div>
				<div class="comm">
					<p>
						<span class="fl">
							<span class="Red">商品评分：</span><span class="rate_point_s point5s_0"></span><span class="buytime">购买时间：2016-08-25 </span>　<span class="color">颜色:黑色</span>　<span class="size">尺码:XL</span>
						</span>
						<span class="fr"><a href="http://www.yougou.com/review-detaildZh0iNsfR_0.html" target="_blank" class="Blue">点评发布于：2016-09-03 </a></span>
					</p>
				</br>
						<span class="Red">点评内容：</span>挺不错，还是挺喜欢优购
					</p>
					<!--如果有客服回复则显示客服回复-->
					<!--客服回复结束-->
					<p class="line"></p>
	                <p class="agree"><a class="cblue" id="isusefulCountf10632981021446aa38336291d76f235" href="javascript:commentByUseful('f10632981021446aa38336291d76f235');">赞<em class="c6">(0)</em></a></p>
					<p class="comm_arr"></p>
					<p class="clear"></p>
				</div>
			</div>
		
			
			
	</div>
</div>
<!--点评正文 end-->
</div>
					</div>
				</div>
			</div>
			
		</div>
	</div>
		<!--产品详情结束-->
		
		</div>
		<!--内容结束-->	
		
		<!--相关推荐-->
		<div class="goods_rc fr">
			
				<!--其他相似商品start-->
				      <div class="good_rList mt10">
					        <h3>其他相似商品</h3>
					        <ul id="otherlikegoods2" class="pro_otherPro">
					        	<li class="pro_bgpicLis">
					        		<div class="propic">
						        		<a target="_blank" href="">
						        			<img class="" src="http://i2.ygimg.cn/pics/thenorthface/2016/100391133/100391133_01_s.jpg?2" width="160" height="160">
						        		</a>
					        	</div>
					        	<p class="proName">
					        		<a target="_blank" href="">The North Face乐斯菲斯 2016专柜同款男子轻便易打理 短袖T恤CZN7FN4</a>
					        	</p>
					        	<p class="price_sc">
					        		<a target="_blank" href="">
					        			<em class="ygprc">¥<i>179</i></em>
					        			<del>¥298</del>
					        			
					        		</a>
					        	</p>
					        	</li>
					        	</ul>
				      </div>
			    <!--其他相似商品end -->
			    
				<!-- 想买还想买start -->
				<div class="good_rList mt10">
					<h3>购买了该商品的用户还购买了</h3>
					<ul id="otherlikegoods2" class="pro_otherPro">
					        	<li class="pro_bgpicLis">
					        		<div class="propic">
						        		<a target="_blank" href="">
						        			<img class="" src="http://i2.ygimg.cn/pics/thenorthface/2016/100391133/100391133_01_s.jpg?2" width="160" height="160">
						        		</a>
					        	</div>
					        	<p class="proName">
					        		<a target="_blank" href="">The North Face乐斯菲斯 2016专柜同款男子轻便易打理 短袖T恤CZN7FN4</a>
					        	</p>
					        	<p class="price_sc">
					        		<a target="_blank" href="">
					        			<em class="ygprc">¥<i>179</i></em>
					        			<del>¥298</del>
					        			
					        		</a>
					        	</p>
					        	</li>
					        	</ul>
				</div>
				<!-- 想买还想买end -->
                
              <!-- 其它商品品类推荐-->
              
	
			 
	</div>
		
		
		
		
		<!--相关推荐结束-->
		
</div>
		<!--底部-->
		<div id="foot">
			<div class="box">
				<img src="img/endlogo.gif"/>
				<div class="box_r">
					<ul>
						<li><a href="#">关于优购</a></li>
						<li><a href="#">关于优购</a></li>
						<li><a href="#">关于优购</a></li>
						<li><a href="#">关于优购</a></li>
						<li><a href="#">关于优购</a></li>
						<li><a href="#">关于优购</a></li>
						<li><a href="#">关于优购</a></li>
						<li><a href="#">关于优购</a></li>
						<li><a href="#">关于优购</a></li>
						<li><a href="#">关于优购</a></li>
						<li><a href="#">关于优购</a></li>
						<li style="border: none;"><a href="#">关于优购</a></li>
					</ul>
					<p>Copyright © 2011-2016 Yougou Technology</p>
				</div>
			</div>
		</div>
		<!--底部结束-->
		
	</body>
</html>
